package com.cj.designpattern.factory.abstractfactory.impl;

import com.cj.designpattern.factory.abstractfactory.IAirConditioner;
import com.cj.designpattern.factory.abstractfactory.ICarFartory;
import com.cj.designpattern.factory.abstractfactory.IEngine;

/**
 * ClassName: CarAFactory <br/>
 * Function: A车工厂方法 <br/>
 * date: 2018/04/27 19:14 <br/>
 *
 * @author chenj
 * @version 1.0.0
 * @since JDK 1.8
 */
public class CarAFactory implements ICarFartory {

    @Override
    public IAirConditioner installAirConfitioner() {
        return new AirConditionerHaierImpl();
    }

    @Override
    public IEngine installEngine() {
        return new EngineDomesticImpl();
    }
}
